<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="/favicon.ico">
	<link rel="Shortcut Icon" href="/favicon.ico" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="__UU__/lib/lib/html5.js"></script>
	<script type="text/javascript" src="__UU__/lib/lib/respond.min.js"></script>
	<script type="text/javascript" src="__UU__/lib/lib/PIE_IE678.js"></script>
	<![endif]-->
	<link href="__UU__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="__UU__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
	<link href="__UU__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
	<link href="__UU__/css/style.css" rel="stylesheet" type="text/css" />
	<!--[if IE 6]>
	<script type="text/javascript" src="__UU__/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<title>活动列表</title>
	<style>
		.table-sort span{
			color: #4FBD4F;
			cursor: pointer;
		}
	</style>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 
		首页 <span class="c-gray en">&gt;</span> 
		活动管理 <span class="c-gray en">&gt;</span> 
		活动列表 
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="pd-20">
		<!--<div class="text-c">
			活动名称：
			<input type="text"  class="input-text" style="width:120px;">
			分类：
			<span class="select-box inline">
				<select name="" class="select">
					<option value="0">不限 </option>
					<option value="1">培训</option>
					<option value="2">商演</option>
				</select>
			</span>
			状态：
			<span class="select-box inline">
				<select name="" class="select">
					<option value="0">不限 </option>
					<option value="1">已发布</option>
					<option value="2">已结束</option>
					<option value="2">审核中</option>
					<option value="2">草稿</option>
				</select>
			</span>
			发布时间：
			<input type="text" name="" id="start" class="input-text Wdate" onfocus="WdatePicker({maxDate:'2055-01-01'})" style="width: 120px;" />
			-
			<input type="text" name="" id="end" class="input-text Wdate" onfocus="WdatePicker({minDate:'1990-01-01',maxDate:'%y-%M-%d'})" style="width: 120px;"  />
			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
		</div>-->
		
		<div class="mt-20">
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr>
						<th></th>
						<th>活动名称</th>
						<th>活动类型</th>
						<th>活动周期</th>
						<th>费用类型</th>
						<th>已售/库存</th>
						<th>状态</th>
						<th>发布时间</th>
						<th>收藏</th>
						<th>浏览</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<volist name="list" id="vo">
					<tr>
					    <php>
						  $status = \Org\Web\activity::activity_status($vo['id']);
						</php>
						<td>{$vo.id}</td>
						<td><a href="javascript:void(0)" <if condition="$status eq '已发布'">class="table_aLink" onclick="lookyixia('{$vo.id}')"</if>>{$vo.name}</a></td>
						<td>{:\\Org\\Web\\activity::activity_class($vo['id'])}</td>
						<td>{:\\Org\\Web\\activity::activity_time_type($vo['id'])}</td>
						<td>{:\\Org\\Web\\activity::activity_fee_type($vo['id'])}</td>
						<td><if condition="$vo.fee_type neq '3'"><a href="javascript:void(0)" class="table_aLink" onclick="layer_show('查看活动库存', '__APP__/Reuse/repertory/id/{$vo.id}')">查看</a></if></td>
						<td>
						 <p>{$status}</p>
						 <p>
						 <if condition="$vo.close eq '3'"><strong style="color: #dd514c;cursor: pointer;" title="点击查看屏蔽原因" onclick="layer_show('屏蔽原因','__APP__/reuse/look/id/{$vo.id}')"><i class="Hui-iconfont">&#xe709;</i> 官方屏蔽</strong>
						 <elseif condition="$vo.close eq '2'"/>
						  <strong style="color: #dd514c;cursor: pointer;" title="点击查看失败原因" onclick="layer_show('失败原因','__APP__/reuse/look/id/{$vo.id}')"><i class="Hui-iconfont">&#xe709;</i> 审核失败</strong>
						 </if></p>
						</td>
						<td>{$vo.add_time}</td>
						<td>{$vo.collect_time}</td>
						<td>{$vo.browse_time}</td>
						<td>
						<if condition="$vo.close eq '1' or $vo.close eq '3' or $vo.close eq '0'">
							<button type="button" class="btn btn-success radius size-MINI ml-5" onclick="lookyixia('{$vo.id}')"><i class="Hui-iconfont">&#xe709;</i> 查看</button>
						<else/>
						    <button type="button" class="btn btn-primary radius size-MINI ml-5" onclick="layer_show('修改活动','__APP__/Activity/index?id={$vo.id}&callback=<php>echo urlencode($url)</php>')"><i class="Hui-iconfont">&#xe6df;</i> 修改</button>
						</if>
						<if condition="$vo.close neq '1'">
						<button type="button" class="btn btn-danger radius size-MINI ml-5" onclick="del('{$vo.id}','__APP__/Activity/del_activity','{$url}')"><i class="Hui-iconfont">&#xe6e2;</i> 删除</button>
						</if>
						</td>
					</tr>
				</volist>
				</tbody>
			</table>
		</div>
		
	</div>
<script type="text/javascript" src="__UU__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__UU__/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__UU__/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__UU__/js/H-ui.js"></script>
<script type="text/javascript" src="__UU__/js/H-ui.admin.js"></script>
<script type="text/javascript" src="__UU__/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="__UU__/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__ADMIN__/js/function.js?w=124444"></script>
<script type="text/javascript">
	
	$(function (){
		$('.table-sort').dataTable({
			"aaSorting": [[ 0, "desc" ]],
			"aoColumnDefs": [
			  {"orderable":false,"aTargets":[0,9,10]}
			],
			oLanguage:{
				sSearch:"搜索"
			}
		});
	});
	
	
</script>
</body>
</html>
